<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的第一个Flask项目</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="container">
        <h1>欢迎来到我的Flask项目！</h1>
        <div class="color-boxes">
            {% for color in colors %}
            <div class="color-box" style="background-color: {{ color }}"></div>
            {% endfor %}
        </div>
        <p class="message">每次刷新页面都会看到不同的颜色！</p>
    </div>
</body>
</html> 